
public class Simulator {
	public void playSound(Animal animal) {
	        System.out.println(animal.getAnimalName() + " says:");
	        animal.cry();
	        System.out.println();  // 添加空行以便区分不同动物的输出
	    }
}

